import fetch from 'utils/fetch';
/**
 * 家长管理
 */
//获取家长管理列表
export function query(curPage,pageSize,provinceId,cityId,areaId,schoolId,paraentName,exueId,phone) {
  const data = {
    provinceId,
    cityId,
    areaId,
    schoolId,
    paraentName,
    exueId,
    phone
  };
  return fetch({
      url: '/parent/query/'+curPage+'/'+pageSize,
      method: 'post',
      data
  });
}
//查看家长信息
export function viewParentInfo(userId,parentId) {
  const data = {
    userId,
    parentId
  };
  return fetch({
      url: '/parent/viewParentInfo',
      method: 'post',
      data
  });
}
//删除家长
export function deleteParents(userId,parentId,studentNum) {
    const data = {
        userId,
        parentId,
        studentNum
    };
    return fetch({
        url: '/parent/deleteParents',
        method: 'post',
        data
    });
  }
//初始化密码
export function initPwd(passWord,userId) {
    const data = {
        passWord
    };
    return fetch({
        url: '/parent/initPwd/'+userId,
        method: 'post',
        data
    });
  }
